package com.itheima.File文件;

import java.io.File;

public class Demo12 {
    public static void main(String[] args) {
        File file = new File("a.txt");
        String[] list = file.list();
        String path = file.getPath();
        System.out.println(path);
        String absolutePath = file.getAbsolutePath();
        System.out.println(absolutePath);
        for (String s : list) {
            System.out.println(s);
        }
    }
}
